package anno.mapped;

import org.hibernate.classic.Session;
import org.junit.Test;

import util.HibernateUtil;

public class TestCase {
	@Test
	public void testST() {
		Session session = HibernateUtil.currentSession();
		Concreate concreate = new Concreate();
		
		concreate.setDescr("descr");
		concreate.setName("name");
		concreate.setTestet("ttttttt");
		session.save(concreate);
		
		concreate = new Concreate();
		concreate.setDescr("descr");
		concreate.setName("name");
		concreate.setTestet("ttttttt");
		session.save(concreate);
		
		Concreate2 concreate2 = new Concreate2();
		concreate2.setDescr("descr");
		concreate2.setName("name");
		concreate2.setTestet("ttttttt");
		session.save(concreate2);
		
		System.out.println(concreate.getId());
		HibernateUtil.closeSession();
	}
}
